﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example17.aspx.cs" Inherits="Chapter12.Example17" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 12-17 使用一般性的 button </title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut icon" href="Example01.Favicon.ico" type="image/x-ico" />
</head>
<body>
    <form name="fruitvote" id="fruitvote" method="post">
        <div>
            <p>
                <label for="name">Name:</label>
                <input name="name" id="name" />
            </p>
            <p>
                <label for="city">City:</label>
                <input name="city" id="city" />
            </p>
            <p>
                <button type="submit" formaction="http://localhost:59796/form" formmethod="post">Submit Vote</button>
                <button type="reset">Reset</button>
                <button type="button">Do <strong>NOT</strong> press this button</button>
                <asp:Button ID="Submit" Text="Submit" OnClick="Submit_Click" />
                <asp:Button ID="ClearButton" Text="Clear" OnClick="ClearButton_Click" />
            </p>
            <p>
                <asp:TextBox ID="ViewTexBox" Wrap="true" Height="250" Width="700" TextMode="MultiLine" />
            </p>
        </div>
    </form>
</body>
</html>
